package com.google.superlists.model;

/**
 * Represents a single item in a list.
 * 
 * @author sven
 */
public class SuperListItem {

  /** The name of the item. (task.title) */
  public String name;

  /** The description of the item. (task.notes) */
  public String description;

  /** ID of the task this item is associated with. (task.id) */
  public String taskId;

  /** Status of the item, either needs completion or done. (task.status) */
  public String status;

  /** ID of the event this item is associated with. (event.id) */
  public String eventId;

  /** Date this item is due. (event.start) */
  public String dueDate;

  /** Empty constructor required by Gson. */
  public SuperListItem() {}

  /**
   * Converts this item into a json blob.
   */
  public String toJson() {
    return JsonUtil.toJson(this);
  }

  @Override
  public String toString() {
    return name + ": " + description;
  }
}
